package com.hellowx.manager.controller;

import com.hellowx.manager.pojo.GoodsImage;
import com.hellowx.manager.service.GoodsImageService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by IntelliJ IDEA.
 *
 * @author MagicMushroom
 * @date 2021/7/18
 */
@RestController
@RequestMapping("/goodsImage")
public class GoodsImageController {
    @Resource
    private GoodsImageService goodsImageService;

    @RequestMapping("save")
    public String saveGoodsImage(GoodsImage goodsImage){
        Integer cows = goodsImageService.saveGoodsImage(goodsImage);
        if (cows>0){
            return "保存成功";
        }
        return "保存失败";
    }
}
